package com.caiyouxi.system.controller;

import com.caiyouxi.common.bean.ResData;
import com.caiyouxi.system.model.SysLogBean;
import com.caiyouxi.system.service.SysLogBeanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("sys_log")
public class SysLogBeanController {
    @Autowired
    private SysLogBeanService service;
    //删除消息
    @RequestMapping("delete_sys_log")
    public ResData delete_sys_log(@RequestBody SysLogBean bean){
        return service.delete_sys_log(bean);
    }
    //添加消息
    @RequestMapping("insert_sys_log")
    public ResData insert_sys_log(@RequestBody SysLogBean bean){
        return service.insert_sys_log(bean);
    }
    //查询单挑记录
    @RequestMapping("select_single_syslog")
    public ResData select_single_syslog(@RequestBody SysLogBean bean){
        return service.select_single_syslog(bean);
    }
    //更新消息
    @RequestMapping("update_syslog")
    public ResData update_syslog(@RequestBody SysLogBean bean){
        return service.update_syslog(bean);
    }
    //查询所有消息
    @RequestMapping("get_all_syslog")
    public ResData get_all_syslog(@RequestBody SysLogBean bean){
        return service.get_all_syslog(bean);
    }
}
